package Java练习.面向对象综合练习.抽象类;

import org.w3c.dom.ls.LSOutput;

public class Text {
    public static void main(String[] args) {
    //创建对象

    Frog f=new Frog("小青",1);
        System.out.println(f.getName()+","+f.getAge());
        f.eat();
        f.swim();

        //创建兔子对象
        Rabbie r=new Rabbie("小白",2);
        System.out.println(r.getName()+","+r.getAge());
        r.eat();
    }
}
